package cn.edu.sziit.bbs.dao;

import cn.edu.sziit.bbs.model.Post;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PostMapper {
    int deleteByPrimaryKey(Integer postId);

    int insert(Post record);

    int insertSelective(Post record);

    Post selectByPrimaryKey(Integer postId);

    int updateByPrimaryKeySelective(Post record);

    int updateByPrimaryKey(Post record);

    List<Post> selectAll();

    List<Post> selectAllByUserId(Integer userId);

    List<Post> selectAllByPostTitle(String postTitle);
}